#include "../myTime.hpp"
#include <iostream>
#include <vector>
using namespace std;

int main() {
  const int num = 10000000;
  std::vector<int> obj;
  std::vector<int> obj2;
  std::vector<int> *ptr = &obj2;

  MyTimer(0, "obj");
  for (int i = 0; i < num; ++i)
    obj.push_back(i);
  MyTimer(1);

  MyTimer(0, "ptr");
  for (int i = 0; i < num; ++i)
    ptr->push_back(i);
  MyTimer(1);

  return 0;
}